<?php
$this->setLayout('template'.DS.'default.phtml');
$this->startBlock('scriptBlocks');
?>
<script language="javascript" type="text/javascript">
$(function(){
    $('#access_control').change(function(){
        var v = $(this).val();
        if(v == 'allow_role'){
            $('#field_role_ids').show();
        }else{
            $('#role_ids').empty().parent().parent().hide();
        }
    });
});
</script>
<?php
$this->endBlock();

$this->startBlock('topbar');
echo $this->navigation->toHtml();
$this->endBlock();

$this->startBlock();
echo $this->toolbar->toHtml();
echo $this->form->toHtml();
$this->endBlock();